<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01</title>
    <style>
        body{
            font: 12px "simhei", Arial, Helvetica, sans-serif;
        }
        div{
            width: 198px;
            height: 233px;
            background-color:   #e8e8e8;
            text-align: center;/*为了继承给子元素*/


        }
        .c1{
            margin: 0 0 6px 0;


        }
        .c2{
            color: #0aa1ed;
            font-weight: bold;
            margin:  6px 0;


        }
        a{
            background-color: #0aa1ed;
            text-decoration: none;
            color: white;
            width: 100px;
            height: 24px;
            /*如果inline-block元素自身受上级div内容居中的影响
              如果是block是由于独占一行所以元素自身不受影响内部文本受居中影响
              此时需要单独给元素加一个居中操作margin: 0 auto;
            */
            /*display: block;
            margin:  0 auto;*/
            display: inline-block;
            line-height: 24px;
            border-radius: 3px;


        }




    </style>


</head>
<body>
<div>
    <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img3.png" alt="">
        <p class="c1">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
        <p class="c2">￥4600.00</p>
        <a href="">查询详情</a>

</div>



</body>
</html>